package com.csx.micrometer.database;

import com.csx.micrometer.database.config.MicrometerDatabaseProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author cuisongxu
 * @date 2023/3/14 20:04
 */
@SpringBootApplication
@EnableScheduling
public class MicrometerDatabaseApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(MicrometerDatabaseApplication.class, args);
        MicrometerDatabaseProperties bean = applicationContext.getBean(MicrometerDatabaseProperties.class);
        System.out.println(bean);
    }

}
